package com.example.demo.mybatis.entity;
/**
 * Copyright (c) 2018-2022 ThunderSoft
 * All Rights Reserved by Thunder Software Technology Co., Ltd and its affiliates.
 * You may not use, copy, distribute, modify, transmit in any form this file
 * except in compliance with ThunderSoft in writing by applicable law.
 */


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.mybatis.entity.inner.ObjectData;
import com.example.demo.mybatis.handler.MybatisTypeHandler;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author liyuncong
 * @version 1.0
 * @file TestQueryJsonV2
 * @brief TestQueryJsonV2
 * @details TestQueryJsonV2
 * @date 2022-11-17
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2022-11-17               liyuncong          Created
 */
@Data
@TableName(value = "test_query_json_v2", autoResultMap = true)
public class TestQueryJsonV2 implements Serializable {

    @TableField(value = "id")
    private Long id;
    @TableField(value = "array_data", typeHandler = MybatisTypeHandler.class)
    private List<Object> arrayData;
    @TableField(value = "map_data", typeHandler = MybatisTypeHandler.class)
    private Map<String, Object> mapData;
    @TableField(value = "object_data", typeHandler = MybatisTypeHandler.class)
    private ObjectData objectData;
    @TableField(value = "data_name")
    private String dataName;
}
